<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;
use App\Repository\UserGroupUserRepository;

/**
 * UserGroupUser
 *
 * @ORM\Table(name="user_group_user", indexes={@ORM\Index(name="idx_group_id", columns={"group_id"}), @ORM\Index(name="idx_user_id", columns={"user_id"})})
 * @ORM\Entity(repositoryClass=UserGroupUserRepository::class)
 */
class UserGroupUser
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer", nullable=false, options={"comment"="自增主键"})
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var int
     *
     * @ORM\Column(name="group_id", type="integer", nullable=false, options={"comment"="用户组ID"})
     */
    private $groupId = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="user_id", type="integer", nullable=false, options={"comment"="用户ID"})
     */
    private $userId = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="create_user", type="integer", nullable=false, options={"comment"="创建人"})
     */
    private $createUser = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="create_time", type="integer", nullable=false, options={"comment"="创建时间"})
     */
    private $createTime = '0';

    public function getId(): ?int
    {
        return $this->id;
    }

    public function getGroupId(): ?int
    {
        return $this->groupId;
    }

    public function setGroupId(int $groupId): static
    {
        $this->groupId = $groupId;

        return $this;
    }

    public function getUserId(): ?int
    {
        return $this->userId;
    }

    public function setUserId(int $userId): static
    {
        $this->userId = $userId;

        return $this;
    }

    public function getCreateUser(): ?int
    {
        return $this->createUser;
    }

    public function setCreateUser(int $createUser): static
    {
        $this->createUser = $createUser;

        return $this;
    }

    public function getCreateTime(): ?int
    {
        return $this->createTime;
    }

    public function setCreateTime(int $createTime): static
    {
        $this->createTime = $createTime;

        return $this;
    }


}
